package com.imooc.luckmoney;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;

import java.math.BigDecimal;


/**
 * The type Hello controller.
 */
@RestController
@RequestMapping("home")
public class HelloController {

//    @Value("${minMoney}")
//    private BigDecimal minMoney;
//
//    @Value("${description}")
//    private String description;

    @Autowired
    private LimitConfig limitConfig;

    /**
     * Do say hello string.
     *
     * @return the string
     */
    @PostMapping("hello")
    public String doSayHello(@RequestParam(value = "id",required = false,defaultValue = "0")Integer id){
        return "id:"+id;
    }
}
